#!/usr/bin/env python


import rospy
from nav_msgs.msg import Odometry

def poseCallback(msg):
	rospy.loginfo("Current pose: x:%0.6f, y:%0.6f", msg.pose.pose.position.x, msg.pose.pose.position.y)
	rospy.loginfo("Current velocity: x:%0.6f", msg.twist.twist.linear.x)	

def pose_subscriber():
	rospy.init_node('pose_subscriber', anonymous=True)

	rospy.Subscriber("/robot_1/odom", Odometry, poseCallback)

	rospy.spin()

if __name__ == '__main__':
	pose_subscriber()
